\hypertarget{classOdiohPlaya}{
\section{OdiohPlaya Class Reference}
\label{classOdiohPlaya}\index{OdiohPlaya@{OdiohPlaya}}
}


{\ttfamily \#include $<$OdiohPlaya.h$>$}

\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{classOdiohPlaya_a9522454a646d2518762f8d2511762509}{OdiohPlaya} ()
\begin{DoxyCompactList}\small\item\em Constructor. \item\end{DoxyCompactList}\item 
virtual \hyperlink{classOdiohPlaya_a606093cf29c830d336c51634a13042f7}{$\sim$OdiohPlaya} ()
\begin{DoxyCompactList}\small\item\em Destructor. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Protected Member Functions}
\begin{DoxyCompactItemize}
\item 
void \hyperlink{classOdiohPlaya_a071692b58f9550a1b8fda1e5c89c2258}{dragEnterEvent} (QDragEnterEvent $\ast$event)
\begin{DoxyCompactList}\small\item\em Acceptance of draging. \item\end{DoxyCompactList}\item 
void \hyperlink{classOdiohPlaya_a7d357852434535aaa6cc3a18fc5d44a9}{dropEvent} (QDropEvent $\ast$event)
\begin{DoxyCompactList}\small\item\em Drop event detection. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Private Slots}
\begin{DoxyCompactItemize}
\item 
void \hyperlink{classOdiohPlaya_a9833c119e47cf4a9fb9eaac2e426699e}{addTracks} ()
\begin{DoxyCompactList}\small\item\em Adding tracks to the playlist. \item\end{DoxyCompactList}\item 
void \hyperlink{classOdiohPlaya_adc482731bc9ca6cbecc2ba280b39528a}{nextTrack} ()
\begin{DoxyCompactList}\small\item\em Changing to the next track. \item\end{DoxyCompactList}\item 
void \hyperlink{classOdiohPlaya_afd1d3acdc76a941de951af100103b664}{previousTrack} ()
\begin{DoxyCompactList}\small\item\em Changing to the previous track. \item\end{DoxyCompactList}\item 
void \hyperlink{classOdiohPlaya_a02794a6296428ea48611f13649d871a2}{trackFinished} ()
\begin{DoxyCompactList}\small\item\em Detecting the end of a track. \item\end{DoxyCompactList}\item 
void \hyperlink{classOdiohPlaya_a25cdd3dbc4f91fddc35533900eb42f6b}{updateTime} ()
\begin{DoxyCompactList}\small\item\em Updating the current time. \item\end{DoxyCompactList}\item 
void \hyperlink{classOdiohPlaya_aefa04e7263dc4c5742799b359282c01a}{playPause} ()
\begin{DoxyCompactList}\small\item\em Play/Pause the current track. \item\end{DoxyCompactList}\item 
void \hyperlink{classOdiohPlaya_adf70c559ccdab6120081e1191564070b}{stopPlayback} ()
\begin{DoxyCompactList}\small\item\em Stop the playback. \item\end{DoxyCompactList}\item 
void \hyperlink{classOdiohPlaya_a2edf1622c2b1e0d9afbf9159ed73e782}{rowDoubleClicked} (int row, int column)
\begin{DoxyCompactList}\small\item\em Detecting a track has been doubleclicked. \item\end{DoxyCompactList}\item 
void \hyperlink{classOdiohPlaya_a068fa876c274837367e64ded96fa6991}{removeTracks} ()
\begin{DoxyCompactList}\small\item\em Removing tracks from the playlist. \item\end{DoxyCompactList}\item 
void \hyperlink{classOdiohPlaya_ad24ef6cf32ae5d2ec25b6691266ac246}{clearTrackList} ()
\begin{DoxyCompactList}\small\item\em Clears the whole track list. \item\end{DoxyCompactList}\item 
void \hyperlink{classOdiohPlaya_a4499171a51693a39089ed639fa3a419c}{changeVolume} (int)
\begin{DoxyCompactList}\small\item\em Detecting a change of volume. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Private Attributes}
\begin{DoxyCompactItemize}
\item 
\hyperlink{classUi_1_1OdiohPlaya}{Ui::OdiohPlaya} \hyperlink{classOdiohPlaya_a583397e4adccc4d252c3deec84343209}{widget}
\item 
Phonon::MediaObject $\ast$ \hyperlink{classOdiohPlaya_a7586457cab6360b44ac442659125a2c0}{mediaObject}
\item 
Phonon::AudioOutput $\ast$ \hyperlink{classOdiohPlaya_aafe8149696d05320b178b14a4c203683}{audioOutput}
\item 
QList$<$ Phonon::MediaSource $>$ \hyperlink{classOdiohPlaya_a069c7f35ae4e270f4c9c080e931b11fb}{sources}
\item 
int \hyperlink{classOdiohPlaya_ab8ee14e633c214a8f540cde6bab819bf}{currentTrack}
\end{DoxyCompactItemize}


\subsection{Detailed Description}
Main widget 

Definition at line 35 of file OdiohPlaya.h.



\subsection{Constructor \& Destructor Documentation}
\hypertarget{classOdiohPlaya_a9522454a646d2518762f8d2511762509}{
\index{OdiohPlaya@{OdiohPlaya}!OdiohPlaya@{OdiohPlaya}}
\index{OdiohPlaya@{OdiohPlaya}!OdiohPlaya@{OdiohPlaya}}
\subsubsection[{OdiohPlaya}]{\setlength{\rightskip}{0pt plus 5cm}OdiohPlaya::OdiohPlaya ()}}
\label{classOdiohPlaya_a9522454a646d2518762f8d2511762509}


Constructor. 

Constructor of the OdiohPlay class 

Definition at line 15 of file OdiohPlaya.cpp.

\hypertarget{classOdiohPlaya_a606093cf29c830d336c51634a13042f7}{
\index{OdiohPlaya@{OdiohPlaya}!$\sim$OdiohPlaya@{$\sim$OdiohPlaya}}
\index{$\sim$OdiohPlaya@{$\sim$OdiohPlaya}!OdiohPlaya@{OdiohPlaya}}
\subsubsection[{$\sim$OdiohPlaya}]{\setlength{\rightskip}{0pt plus 5cm}OdiohPlaya::$\sim$OdiohPlaya ()\hspace{0.3cm}{\ttfamily  \mbox{[}virtual\mbox{]}}}}
\label{classOdiohPlaya_a606093cf29c830d336c51634a13042f7}


Destructor. 

Destructor of the OdiohPlay class 

Definition at line 96 of file OdiohPlaya.cpp.



\subsection{Member Function Documentation}
\hypertarget{classOdiohPlaya_a9833c119e47cf4a9fb9eaac2e426699e}{
\index{OdiohPlaya@{OdiohPlaya}!addTracks@{addTracks}}
\index{addTracks@{addTracks}!OdiohPlaya@{OdiohPlaya}}
\subsubsection[{addTracks}]{\setlength{\rightskip}{0pt plus 5cm}void OdiohPlaya::addTracks ()\hspace{0.3cm}{\ttfamily  \mbox{[}private, slot\mbox{]}}}}
\label{classOdiohPlaya_a9833c119e47cf4a9fb9eaac2e426699e}


Adding tracks to the playlist. 

Adding tracks to the playlist by pressing a QPushButton 

Definition at line 104 of file OdiohPlaya.cpp.

\hypertarget{classOdiohPlaya_a4499171a51693a39089ed639fa3a419c}{
\index{OdiohPlaya@{OdiohPlaya}!changeVolume@{changeVolume}}
\index{changeVolume@{changeVolume}!OdiohPlaya@{OdiohPlaya}}
\subsubsection[{changeVolume}]{\setlength{\rightskip}{0pt plus 5cm}void OdiohPlaya::changeVolume (int {\em currentVolume})\hspace{0.3cm}{\ttfamily  \mbox{[}private, slot\mbox{]}}}}
\label{classOdiohPlaya_a4499171a51693a39089ed639fa3a419c}


Detecting a change of volume. 

Updates the volume to the user provided value 

Definition at line 482 of file OdiohPlaya.cpp.

\hypertarget{classOdiohPlaya_ad24ef6cf32ae5d2ec25b6691266ac246}{
\index{OdiohPlaya@{OdiohPlaya}!clearTrackList@{clearTrackList}}
\index{clearTrackList@{clearTrackList}!OdiohPlaya@{OdiohPlaya}}
\subsubsection[{clearTrackList}]{\setlength{\rightskip}{0pt plus 5cm}void OdiohPlaya::clearTrackList ()\hspace{0.3cm}{\ttfamily  \mbox{[}private, slot\mbox{]}}}}
\label{classOdiohPlaya_ad24ef6cf32ae5d2ec25b6691266ac246}


Clears the whole track list. 

Removes all the songs from the playlist 

Definition at line 455 of file OdiohPlaya.cpp.

\hypertarget{classOdiohPlaya_a071692b58f9550a1b8fda1e5c89c2258}{
\index{OdiohPlaya@{OdiohPlaya}!dragEnterEvent@{dragEnterEvent}}
\index{dragEnterEvent@{dragEnterEvent}!OdiohPlaya@{OdiohPlaya}}
\subsubsection[{dragEnterEvent}]{\setlength{\rightskip}{0pt plus 5cm}void OdiohPlaya::dragEnterEvent (QDragEnterEvent $\ast$ {\em event})\hspace{0.3cm}{\ttfamily  \mbox{[}protected\mbox{]}}}}
\label{classOdiohPlaya_a071692b58f9550a1b8fda1e5c89c2258}


Acceptance of draging. 



Definition at line 492 of file OdiohPlaya.cpp.

\hypertarget{classOdiohPlaya_a7d357852434535aaa6cc3a18fc5d44a9}{
\index{OdiohPlaya@{OdiohPlaya}!dropEvent@{dropEvent}}
\index{dropEvent@{dropEvent}!OdiohPlaya@{OdiohPlaya}}
\subsubsection[{dropEvent}]{\setlength{\rightskip}{0pt plus 5cm}void OdiohPlaya::dropEvent (QDropEvent $\ast$ {\em event})\hspace{0.3cm}{\ttfamily  \mbox{[}protected\mbox{]}}}}
\label{classOdiohPlaya_a7d357852434535aaa6cc3a18fc5d44a9}


Drop event detection. 

Tracks can be dropped from outside the application onto the widget, in order to be added to the playlist. 

Definition at line 503 of file OdiohPlaya.cpp.

\hypertarget{classOdiohPlaya_adc482731bc9ca6cbecc2ba280b39528a}{
\index{OdiohPlaya@{OdiohPlaya}!nextTrack@{nextTrack}}
\index{nextTrack@{nextTrack}!OdiohPlaya@{OdiohPlaya}}
\subsubsection[{nextTrack}]{\setlength{\rightskip}{0pt plus 5cm}void OdiohPlaya::nextTrack ()\hspace{0.3cm}{\ttfamily  \mbox{[}private, slot\mbox{]}}}}
\label{classOdiohPlaya_adc482731bc9ca6cbecc2ba280b39528a}


Changing to the next track. 

Sets the current track to the next track 

Definition at line 202 of file OdiohPlaya.cpp.

\hypertarget{classOdiohPlaya_aefa04e7263dc4c5742799b359282c01a}{
\index{OdiohPlaya@{OdiohPlaya}!playPause@{playPause}}
\index{playPause@{playPause}!OdiohPlaya@{OdiohPlaya}}
\subsubsection[{playPause}]{\setlength{\rightskip}{0pt plus 5cm}void OdiohPlaya::playPause ()\hspace{0.3cm}{\ttfamily  \mbox{[}private, slot\mbox{]}}}}
\label{classOdiohPlaya_aefa04e7263dc4c5742799b359282c01a}


Play/Pause the current track. 

Changes the icon of the QPushButton according to the current state 

Definition at line 279 of file OdiohPlaya.cpp.

\hypertarget{classOdiohPlaya_afd1d3acdc76a941de951af100103b664}{
\index{OdiohPlaya@{OdiohPlaya}!previousTrack@{previousTrack}}
\index{previousTrack@{previousTrack}!OdiohPlaya@{OdiohPlaya}}
\subsubsection[{previousTrack}]{\setlength{\rightskip}{0pt plus 5cm}void OdiohPlaya::previousTrack ()\hspace{0.3cm}{\ttfamily  \mbox{[}private, slot\mbox{]}}}}
\label{classOdiohPlaya_afd1d3acdc76a941de951af100103b664}


Changing to the previous track. 

Sets the current track to the previous track 

Definition at line 225 of file OdiohPlaya.cpp.

\hypertarget{classOdiohPlaya_a068fa876c274837367e64ded96fa6991}{
\index{OdiohPlaya@{OdiohPlaya}!removeTracks@{removeTracks}}
\index{removeTracks@{removeTracks}!OdiohPlaya@{OdiohPlaya}}
\subsubsection[{removeTracks}]{\setlength{\rightskip}{0pt plus 5cm}void OdiohPlaya::removeTracks ()\hspace{0.3cm}{\ttfamily  \mbox{[}private, slot\mbox{]}}}}
\label{classOdiohPlaya_a068fa876c274837367e64ded96fa6991}


Removing tracks from the playlist. 

Removing all the tracks selected by the user 

Definition at line 348 of file OdiohPlaya.cpp.

\hypertarget{classOdiohPlaya_a2edf1622c2b1e0d9afbf9159ed73e782}{
\index{OdiohPlaya@{OdiohPlaya}!rowDoubleClicked@{rowDoubleClicked}}
\index{rowDoubleClicked@{rowDoubleClicked}!OdiohPlaya@{OdiohPlaya}}
\subsubsection[{rowDoubleClicked}]{\setlength{\rightskip}{0pt plus 5cm}void OdiohPlaya::rowDoubleClicked (int {\em row}, \/  int {\em column})\hspace{0.3cm}{\ttfamily  \mbox{[}private, slot\mbox{]}}}}
\label{classOdiohPlaya_a2edf1622c2b1e0d9afbf9159ed73e782}


Detecting a track has been doubleclicked. 

Switches the current track to the one which was doubleclicked 

Definition at line 333 of file OdiohPlaya.cpp.

\hypertarget{classOdiohPlaya_adf70c559ccdab6120081e1191564070b}{
\index{OdiohPlaya@{OdiohPlaya}!stopPlayback@{stopPlayback}}
\index{stopPlayback@{stopPlayback}!OdiohPlaya@{OdiohPlaya}}
\subsubsection[{stopPlayback}]{\setlength{\rightskip}{0pt plus 5cm}void OdiohPlaya::stopPlayback ()\hspace{0.3cm}{\ttfamily  \mbox{[}private, slot\mbox{]}}}}
\label{classOdiohPlaya_adf70c559ccdab6120081e1191564070b}


Stop the playback. 

Stops the playback and changes the Play/Pause icon 

Definition at line 320 of file OdiohPlaya.cpp.

\hypertarget{classOdiohPlaya_a02794a6296428ea48611f13649d871a2}{
\index{OdiohPlaya@{OdiohPlaya}!trackFinished@{trackFinished}}
\index{trackFinished@{trackFinished}!OdiohPlaya@{OdiohPlaya}}
\subsubsection[{trackFinished}]{\setlength{\rightskip}{0pt plus 5cm}void OdiohPlaya::trackFinished ()\hspace{0.3cm}{\ttfamily  \mbox{[}private, slot\mbox{]}}}}
\label{classOdiohPlaya_a02794a6296428ea48611f13649d871a2}


Detecting the end of a track. 

Either stop the playback if the are no more tracks to play, or update the current track to the next one 

Definition at line 253 of file OdiohPlaya.cpp.

\hypertarget{classOdiohPlaya_a25cdd3dbc4f91fddc35533900eb42f6b}{
\index{OdiohPlaya@{OdiohPlaya}!updateTime@{updateTime}}
\index{updateTime@{updateTime}!OdiohPlaya@{OdiohPlaya}}
\subsubsection[{updateTime}]{\setlength{\rightskip}{0pt plus 5cm}void OdiohPlaya::updateTime ()\hspace{0.3cm}{\ttfamily  \mbox{[}private, slot\mbox{]}}}}
\label{classOdiohPlaya_a25cdd3dbc4f91fddc35533900eb42f6b}


Updating the current time. 

Taken from the qmediaplayer example 

Definition at line 157 of file OdiohPlaya.cpp.



\subsection{Member Data Documentation}
\hypertarget{classOdiohPlaya_aafe8149696d05320b178b14a4c203683}{
\index{OdiohPlaya@{OdiohPlaya}!audioOutput@{audioOutput}}
\index{audioOutput@{audioOutput}!OdiohPlaya@{OdiohPlaya}}
\subsubsection[{audioOutput}]{\setlength{\rightskip}{0pt plus 5cm}Phonon::AudioOutput$\ast$ {\bf OdiohPlaya::audioOutput}\hspace{0.3cm}{\ttfamily  \mbox{[}private\mbox{]}}}}
\label{classOdiohPlaya_aafe8149696d05320b178b14a4c203683}


Definition at line 65 of file OdiohPlaya.h.

\hypertarget{classOdiohPlaya_ab8ee14e633c214a8f540cde6bab819bf}{
\index{OdiohPlaya@{OdiohPlaya}!currentTrack@{currentTrack}}
\index{currentTrack@{currentTrack}!OdiohPlaya@{OdiohPlaya}}
\subsubsection[{currentTrack}]{\setlength{\rightskip}{0pt plus 5cm}int {\bf OdiohPlaya::currentTrack}\hspace{0.3cm}{\ttfamily  \mbox{[}private\mbox{]}}}}
\label{classOdiohPlaya_ab8ee14e633c214a8f540cde6bab819bf}


Definition at line 67 of file OdiohPlaya.h.

\hypertarget{classOdiohPlaya_a7586457cab6360b44ac442659125a2c0}{
\index{OdiohPlaya@{OdiohPlaya}!mediaObject@{mediaObject}}
\index{mediaObject@{mediaObject}!OdiohPlaya@{OdiohPlaya}}
\subsubsection[{mediaObject}]{\setlength{\rightskip}{0pt plus 5cm}Phonon::MediaObject$\ast$ {\bf OdiohPlaya::mediaObject}\hspace{0.3cm}{\ttfamily  \mbox{[}private\mbox{]}}}}
\label{classOdiohPlaya_a7586457cab6360b44ac442659125a2c0}


Definition at line 64 of file OdiohPlaya.h.

\hypertarget{classOdiohPlaya_a069c7f35ae4e270f4c9c080e931b11fb}{
\index{OdiohPlaya@{OdiohPlaya}!sources@{sources}}
\index{sources@{sources}!OdiohPlaya@{OdiohPlaya}}
\subsubsection[{sources}]{\setlength{\rightskip}{0pt plus 5cm}QList$<$Phonon::MediaSource$>$ {\bf OdiohPlaya::sources}\hspace{0.3cm}{\ttfamily  \mbox{[}private\mbox{]}}}}
\label{classOdiohPlaya_a069c7f35ae4e270f4c9c080e931b11fb}


Definition at line 66 of file OdiohPlaya.h.

\hypertarget{classOdiohPlaya_a583397e4adccc4d252c3deec84343209}{
\index{OdiohPlaya@{OdiohPlaya}!widget@{widget}}
\index{widget@{widget}!OdiohPlaya@{OdiohPlaya}}
\subsubsection[{widget}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Ui::OdiohPlaya} {\bf OdiohPlaya::widget}\hspace{0.3cm}{\ttfamily  \mbox{[}private\mbox{]}}}}
\label{classOdiohPlaya_a583397e4adccc4d252c3deec84343209}


Definition at line 63 of file OdiohPlaya.h.



The documentation for this class was generated from the following files:\begin{DoxyCompactItemize}
\item 
\hyperlink{OdiohPlaya_8h}{OdiohPlaya.h}\item 
\hyperlink{OdiohPlaya_8cpp}{OdiohPlaya.cpp}\end{DoxyCompactItemize}
